import axios from '../utils/utils'

// 登陆接
export let Login=(params)=>axios.post('/users/checkLogin',params)

//添加用户
export let addAccount=params=>axios.post('/users/add',params)

//获取账号列表
export let userList=params=>axios.get('/users/list',{params})

// 删除账号
export let removeacc=params=>axios.get('/users/del',{params})

//批量删除
export let removeall=params=>axios.get('/users/batchdel',{params})

// 修改账号接口
export let editacc=params=>axios.post('/users/edit',params)

// 检查旧密码是否正确
export let inspectpwd=params=>axios.get('/users/checkoldpwd',{params})

// 修改密码
export let changepwd=params=>axios.post('/users/editpwd',params)

// 获取个人中心信息
export let username=params=>axios.get('/users/accountinfo',{params})

// 验证token是否过期（特殊功能
export let checktoken=params=>axios.get('/users/checktoken',{params})

